window.onload=function(){
	var piclist=document.getElementById('pic').getElementsByTagName('li'),
	numlist=document.getElementById('list').getElementsByTagName('li'),
	index=0,
	timer=null;
	clearTimer(timer);
	timer=setInterval(autoplay,3000);
	/*------鼠标滑过数字切换当前图片----*/
	for(var j=0;j<numlist.length;j++){
		numlist[j].id=j;
		numlist[j].onmouseover=function(){
			changestyle(this.id);
		}
	}
	/*-----轮播图片--------*/
	function autoplay(){
		index++;
		if(index>=numlist.length){
			index=0;
		}
		changestyle(index);
	}
	function changestyle(currindex){
		for(var i=0;i<numlist.length;i++){
			piclist[i].style.display='none';
			numlist[i].style.backgroundColor='#666';
		}
		piclist[currindex].style.display='block';
		numlist[currindex].style.backgroundColor='#2295A1';
		index=currindex;
		
	}
	/*----清除计时器------*/
	function clearTimer(timer){
		if(timer){
		clearInterval(timer);
		timer=null;
		}
	}
	/*------------hot区域滚动图片JS---------------*/
	var hotdiv=document.getElementById('hot');
	var icon
}